<!doctype html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="keywords" content="响应式后台模板,开源免费后台模板,bootstrap5后台管理系统模板">
    <meta name="description" content="bootstrap-admin基于bootstrap5的免费开源的响应式后台管理模板">
    <meta name="author" content="ajiho">
    <title>bootstrap-admin开源免费响应式后台管理系统模板</title>
    <style>
        html,body{
            margin: 0;
            padding: 0;
            background-color: #f8f9fa;
        }
        .container{
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 60px;
            font-weight: bold;
            font-family: 'Courier New', Courier, monospace;
        }

        .cursor{
            animation: cursor .3s infinite;
        }

        @keyframes cursor{
            0%, 100% {
                opacity: 0;
            }
            50% {
                opacity: 1;
            }
        }
    </style>
</head>

<body>
<div class="container">
    <span class="status">4 0 4</span>
    <span class="cursor">|</span>
</div>

<script>
    function sleep(duration) {
        return new Promise(resolve => setTimeout(resolve, duration));
    }

    async function updateMsgBox() {
        const msgBox = document.querySelector('.status');
        while (true) {
            await sleep(3000);
            msgBox.innerHTML = '';
            await sleep(700);
            msgBox.innerHTML = '4';
            await sleep(700);
            msgBox.innerHTML = '4 0';
            await sleep(700);
            msgBox.innerHTML = '4 0 4';
        }
    }

    updateMsgBox();
</script>
</body>
</html>